<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue demo06(生命周期钩子)</title>
    <script src="../build/vue.js"></script>
</head>
<body>
<div id="app">
    <p>{{message}}</p>
</div>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            message: 'Lifecycle hooks'
        },
        created: function () {
            console.log('message: ' + this.message);
        }
    });
</script>
</body>
</html>